<template>
  <div class="app-container">
    <!-- 帮助引导 -->
    <guidance title="帮助引导" :list="groupGroupList" />

    <el-form
      v-show="showSearch"
      ref="queryForm"
      class="ltboxT"
      :model="queryParams"
      :inline="true"
      label-width="95px"
      @submit.native.prevent
    >
      <el-form-item label="系统名称" prop="securityName">
        <el-input
          v-model="queryParams.securityName"
          placeholder="请输入系统名称"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>

      <el-form-item label="主要节点">
        <el-select
          v-model="queryParams.importantNodeIp"
          filterable
          size="small"
          clearable
          placeholder="请选择"
        >
          <el-option
            v-for="item in zyNodeList"
            :key="item.id"
            :label="item.nodeIp + '   |    ' + item.nodeName"
            :value="item.nodeIp"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="保障节点">
        <el-select
          v-model="queryParams.securityNodeIp"
          filterable
          size="small"
          clearable
          placeholder="请选择"
        >
          <el-option
            v-for="item in bzNodeList"
            :key="item.id"
            :label="item.nodeIp + '   |    ' + item.nodeName"
            :value="item.nodeIp"
          />
        </el-select>
      </el-form-item>

      <el-form-item label="保障节点">
        <el-select
          v-model="queryParams.faultFlag"
          filterable
          size="small"
          clearable
          placeholder="请选择"
        >
          <el-option label="正常" value="true" />
          <el-option label="故障" value="false" />
          <el-option label="全部" value="" />
        </el-select>
      </el-form-item>

      <el-form-item>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="mini"
          @click="handleQuery"
        >搜索</el-button>
        <el-button
          icon="el-icon-refresh"
          size="mini"
          @click="resetQuery"
        >重置</el-button>
        <el-button
          v-hasPermi="['console:group:add']"
          type="primary"
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
        >新增</el-button>
      </el-form-item>
    </el-form>
    <div class="ltboxC">

      <!-- <el-button type="primary" icon="el-icon-view" size="mini" @click="pushShowData" >运行大屏</el-button> -->

      <right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
    </div>

    <el-table
      v-loading="groupListloading"
      :border="$store.state.settings.isShowTabBorder"
      class="ltboxB"
      style="margin-top: 20px"
      :data="groupList"
    >
      <el-table-column
        label="保障组名称"
        min-width="128"
        align="left"
        prop="securityName"
      >
        <template slot-scope="scope">
          <span class="pointer" @click="clickHandle(scope.row, true)">{{
            scope.row.securityName
          }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="保障组状态"
        min-width="128"
        align="center"
        prop="importantNodeIp"
      >
        <template slot-scope="scope">
          <span
            v-for="(item, index) in group_status_options"
            v-show="item.dictValue == scope.row.groupStatus"
            :key="index"
            class="pointer"
            @click="clickHandle(scope.row, true)"
          >
            <span :style="'color:' + item.extendVal">{{ item.dictLabel }}</span>
          </span>
        </template>
      </el-table-column>

      <el-table-column
        label="主要节点"
        align="center"
        prop="importantNodeIp"
        width="200"
      >
        <template slot-scope="scope">
          <span class="minW130">{{ scope.row.importantNodeIp }}</span>
          <span
            v-if="scope.row.importantNodeStatus == 1"
            style="color: #67c23a"
          >
            <i class="el-icon-loading" />
            在线</span>
          <span v-else style="color: #f56c6c">
            <i class="el-icon-error" />
            离线</span>
        </template>
      </el-table-column>

      <el-table-column
        label="保障节点"
        align="center"
        prop="securityNodeIp"
        width="200"
      >
        <template slot-scope="scope">
          <span class="minW130">{{ scope.row.securityNodeIp }}</span>
          <span v-if="scope.row.securityNodeStatus == 1" style="color: #67c23a">
            <i class="el-icon-loading" />
            在线</span>
          <span v-else style="color: #f56c6c">
            <i class="el-icon-error" />
            离线</span>
        </template>
      </el-table-column>

      <el-table-column label="创建人" align="center" prop="nickName" />
      <el-table-column
        label="修改时间"
        width="160"
        align="center"
        prop="updateTime"
      />
      <el-table-column
        label="操作"
        align="center"
        class-name="small-padding fixed-width"
        width="320"
      >
        <template slot-scope="scope">
          <el-button
            v-if="
              scope.row.initDataStatus !== null &&
                scope.row.initDataStatus === 1 &&
                scope.row.dataMonitorEnabled
            "
            class="jiankong"
            size="mini"
            type="text"
            icon="el-icon-refresh"
            style="color: #e6a23c"
            @click="clickHandle(scope.row, true)"
          >数据同步</el-button>
          <el-button
            v-else
            class="jiankong"
            size="mini"
            type="text"
            icon="el-icon-video-camera"
            @click="clickHandle(scope.row, true)"
          >监控</el-button>
          <el-button
            v-hasPermi="['console:group:edit']"
            class="peizhi"
            size="mini"
            type="text"
            icon="el-icon-finished"
            @click="handleUpdate(scope.row)"
          >配置</el-button>
          <!-- <el-button size="mini" type="text" icon="el-icon-document-checked" @click="fileMonitor(scope.row)" >文件监听</el-button> -->
          <el-button
            class="xitong"
            size="mini"
            type="text"
            icon="el-icon-document-checked"
            @click="systemParame(scope.row)"
          >系统参数</el-button>
          <el-popover placement="top" width="150" trigger="hover">
            <div class="paddL35">
              <el-button
                size="mini"
                type="text"
                icon="el-icon-s-operation"
                @click="openSeniorDialog('seniorQueue', scope.row)"
              >队列</el-button>
            </div>
            <!-- 	<div style="text-align: center;">
							<el-button type="text" size="mini" icon="el-icon-notebook-2" @click="openSeniorDialog('seniorSnapshot',scope.row)">快照</el-button>
						</div> -->
            <div class="paddL35">
              <el-button
                type="text"
                size="mini"
                icon="el-icon-coin"
                @click="openSeniorDialog('drive', scope.row)"
              >驱动</el-button>
            </div>
            <div class="paddL35">
              <el-button
                type="text"
                size="mini"
                icon="el-icon-notebook-2"
                @click="openSeniorDialog('vip', scope.row)"
              >虚拟IP</el-button>
            </div>
            <div class="paddL35">
              <el-button
                type="text"
                size="mini"
                icon="el-icon-notebook-2"
                @click="openSeniorDialog('repair', scope.row)"
              >修复</el-button>
            </div>
            <!-- <div class="paddL35">
								<el-button type="text" size="mini" icon="el-icon-delete" @click="recycleFn(scope.row)">回收站</el-button>
							</div> -->
            <el-button
              slot="reference"
              class="gaoji gjButton"
              size="mini"
              type="text"
              icon="el-icon-guide"
            >高级</el-button>
          </el-popover>
          <el-button
            v-hasPermi="['console:group:remove']"
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="showDeDialogVisible(scope.row)"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pgNum"
      :limit.sync="queryParams.pgSize"
      @pagination="getList"
    />

    <!-- 授权弹框 -->
    <LicenseBox ref="LicenseBox" />

    <!-- 监控保障组页面 -->
    <monitorDialog ref="monitorDialog" @getList="getList" />

    <!-- 文件监听 -->
    <el-dialog
      title="文件监听"
      class="sysDialog wjjtDialog"
      :visible.sync="fileMonitorVisible"
      width="800px"
      :before-close="fileMonitorClose"
    >
      <div class="bdBody">
        <div class="bdBodyBot">
          <div class="bdBodyTopTuBox">
            <el-tabs v-model="activeName">
              <el-tab-pane label="主要节点" name="first">
                <div class="bdBodyTopTu">
                  <el-scrollbar class="center-scrollbar">
                    <el-table :data="masterList" style="width: 100%">
                      <el-table-column
                        prop="createTime"
                        label="发生时间"
                        width="156"
                      >
                        <template slot-scope="scope">
                          {{ scope.row.createTime }}
                        </template>
                      </el-table-column>
                      <el-table-column prop="message" label="文件" />
                    </el-table>
                  </el-scrollbar>
                </div>
              </el-tab-pane>
              <el-tab-pane label="保障节点" name="second">
                <div class="bdBodyTopTu">
                  <el-scrollbar class="center-scrollbar">
                    <el-table :data="slaveList" style="width: 100%">
                      <el-table-column
                        prop="address"
                        label="发生时间"
                        width="156"
                      >
                        <template slot-scope="scope">
                          {{ scope.row.createTime }}
                        </template>
                      </el-table-column>
                      <el-table-column prop="message" label="文件" />
                    </el-table>
                  </el-scrollbar>
                </div>
              </el-tab-pane>
            </el-tabs>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <!-- <el-button @click="dialogVisible = false">取 消</el-button> -->
        <el-button @click="fileMonitorVisible = false">取 消</el-button>
      </span>
    </el-dialog>

    <!-- 系统参数页面 -->
    <sysDialog ref="sysDialog" />

    <!-- 高级页面 -->
    <seniorDialog ref="seniorDialog" />

    <!-- 回收站 -->
    <recycle ref="recycle" />

    <el-dialog title="提示" :visible.sync="deDialogVisible" width="400px">
      <p style="margin-bottom: 20px">
        删除保障组 [{{ deleteRow.securityName }}]
        的同时，是否删除VIP、是否停止驱动
      </p>
      <el-checkbox-group v-model="delList">
        <el-checkbox label="delVIP">删除VIP</el-checkbox>
        <!-- <el-checkbox label="stopDriver">停止驱动</el-checkbox> -->
      </el-checkbox-group>
      <p style="margin-top: 10px; color: orange">
        删除时会同步删除关联的CDP保障组和相关基线
      </p>
      <span slot="footer" class="dialog-footer">
        <el-button @click="deDialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="deDialogVisibleFn">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import {
  listGroup,
  getAllInfo,
  listGroupRemove,
  fileOperateInfo,
  delAgentOtherInfo
} from '@/api/console/group'

import monitorDialog from '@/views/console/securityGroup/groupDialog/monitorDialog'
import sysDialog from '@/views/console/securityGroup/groupDialog/sysDialog/sysIndex'
import seniorDialog from '@/views/console/securityGroup/senior/index'
import recycle from '@/views/console/securityGroup/groupDialog/recycle'

import { mapGetters } from 'vuex'

import { listHessNode } from '@/api/console/hessNode'

export default {
  name: 'Group',
  components: {
    monitorDialog,
    sysDialog,
    seniorDialog,
    recycle
  },

  data() {
    return {
      id: '',
      deleteRow: {},
      // 删除遮罩
      deDialogVisible: false,
      fileMonitorVisible: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      zyNodeList: [],
      bzNodeList: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 保障系统信息表格数据
      groupList: [],
      groupListloading: false,
      // 弹出层标题
      title: '',
      // 查询参数
      queryParams: {
        pgNum: 1,
        pgSize: 10,
        securityName: ''
      },
      fullscreenLoading: false,
      // 表单参数
      form: {},
      nodeList: [],
      nodeNames: [],
      delList: [],
      // 节点类型
      nodeTypeOptions: [],
      // 节点状态
      nodeStatusOptions: [],
      // 保障状态
      statusOptions: [],
      // 心跳间隔
      checkIntervalOptions: [],
      masterList: [],
      slaveList: [],
      isOne: 1,
      activeName: 'first',
      groupGroupList: [
        {
          title: '1.页面指引',
          helpMsg: '业务保障页面指引'
        },
        {
          title: '2.如何配置保障任务',
          helpMsg: '创建业务保障任务'
        },
        {
          title: '3.业务保障高级页面指引',
          helpMsg: '业务保障高级'
        },
        {
          title: '4.保障组状态异常或未知',
          helpMsg: '保障组状态异常或未知'
        }
      ]
    }
  },
  computed: {
    ...mapGetters([
      'node_status_options',
      'group_status_options',
      'novice_guidance_status'
    ])
  },
  activated() {
    // //接收首页的路由传参
    this.queryParams.id = this.$route.params.id

    this.queryParams.faultFlag = this.$route.params.faultFlag + ''

    if (this.isOne != 1) {
      console.log('回到页面，再次更新数据')
      this.getList()
      this.timer()
    }
    this.isOne++
  },
  created() {
    if (this.$route.params.id) {
      this.queryParams.id = this.$route.params.id
    }

    this.queryParams.faultFlag = this.$route.params.faultFlag + ''

    this.getList()
    this.timer()
    this.getNodeListAll()
    new Promise((resolve) => {
      this.getDiceData(resolve)
      this.isOne++
    }).then((res) => {
      // 是否打开监控
      if (this.$route.params.isShowMonitor) {
        this.$nextTick(() => {
          this.clickHandle(this.$route.params.row, true)
        })
      }
    })
  },
  deactivated() {
    // 离开页面的时候销毁 定时器任务
    clearInterval(this.setIntervalTime)
  },
  destroyed() {
    clearInterval(this.setIntervalTime)
  },
  mounted() {
    this.defineSteps = [
      {
        element: '.ltboxT',
        popover: {
          title: '搜索区域',
          description: '输入关键字，或者选择节点快速定位想要搜索的保障任务'
        }
      },
      {
        element: '.ltboxC',
        popover: {
          title: '操作区域',
          description: '点击“新增”按钮。跳转新增页面，按实际需求添加保障任务'
        }
      },
      {
        element: '.ltboxB',
        popover: {
          title: '展示区域',
          description: '展示保障任务列表'
        }
      },
      {
        element: '.jiankong',
        popover: {
          title: '监控按钮',
          description:
            '打开监控弹框，来详细展示保障任务，节点状态，保障业务，等详细指标',
          position: 'left'
        }
      },
      {
        element: '.peizhi',
        popover: {
          title: '配置按钮',
          description: '点击配置可以二次编辑之前配置的保障任务',
          position: 'left'
        }
      },
      {
        element: '.xitong',
        popover: {
          title: '系统参数按钮',
          description:
            '展示系统配置文件中默认保障的系统参数，可以二次修改。保障参数展示系统配置详细保障文件',
          position: 'left'
        }
      },
      {
        element: '.gaoji',
        popover: {
          title: '高级按钮',
          description:
            '展示节点传送队列情况，复刻驱动插件是否启动，网卡虚拟保障信息，节点状态异常强制进行状态修复',
          position: 'left'
        }
      }
    ]
    // var vue = this
    // setTimeout(() => {
    //   var group_index = JSON.parse(
    //     sessionStorage.getItem('novice_guidance_status')
    //   ).group_index
    //   if (group_index != 'true') {
    //     vue.driverStart()
    //   }
    // }, 300)
  },
  methods: {
    // 开启新手引导
    driverStart() {
      this.$driver.defineSteps(this.defineSteps)
      this.$driver.start()
      this.$store.dispatch('add_guidance_status', 'group_index')
    },
    getNodeListAll() {
      listHessNode({
        pgNum: 1,
        pgSize: 6000
      }).then((response) => {
        this.nodeList = response.rows
        this.zyNodeList = []
        this.bzNodeList = []

        response.rows.map((items) => {
          if (items.nodeType == 1) {
            this.zyNodeList.push(items)
          } else {
            this.bzNodeList.push(items)
          }
        })
      })
    },
    // 定时器
    timer() {
      clearInterval(this.setIntervalTime)
      this.setIntervalTime = window.setInterval(() => {
        this.getList()
      }, 5000)
    },
    close() {
      this.$refs['elForm'].resetFields()
    },
    openSeniorDialog(pageType, item) {
      // console.log(item)
      this.$refs.seniorDialog.pageType = pageType
      this.$refs.seniorDialog.dialogTableVisible = true

      this.$refs.seniorDialog.itemId = item.id
      this.$refs.seniorDialog.item = item
      // 获取节点状态
      this.$refs.seniorDialog.getNodeStatus()
      this.$nextTick(() => {
        if (pageType == 'seniorQueue') {
          this.$refs.seniorDialog.pageName = '队列'
          this.$refs.seniorDialog.$refs.seniorQueueDom.groupId = item.id
          this.$refs.seniorDialog.$refs.seniorQueueDom.getGroupNodeNioInfoFn(
            item
          )
        } else if (pageType == 'drive') {
          this.$refs.seniorDialog.pageName = '驱动'
          this.$refs.seniorDialog.$refs.driveDom.groupId = item.id
          this.$refs.seniorDialog.$refs.driveDom.ywjA = ''
          this.$refs.seniorDialog.$refs.driveDom.bzjB = ''
          this.$refs.seniorDialog.$refs.driveDom.driveInfo =
            '驱动信息加载中...'

          this.$refs.seniorDialog.$refs.driveDom.groupDriverStatusFn(item)
        } else if (pageType == 'vip') {
          this.$refs.seniorDialog.pageName = '虚拟IP'
          this.$refs.seniorDialog.$refs.vipDom.groupId = item.id
          this.$refs.seniorDialog.$refs.vipDom.groupSecurityServiceInfoFn(item)
        } else if (pageType == 'repair') {
          this.$refs.seniorDialog.pageName = '修复'
          this.$refs.seniorDialog.$refs.repairDom.initData(item)
        }
      })
    },
    recycleFn(item) {
      this.$refs.recycle.initData(item)
    },
    // 关闭日志 关闭定时器
    groupSwitchNowClose() {
      // console.log('关闭日志');
      clearInterval(this.groupSwitchTime)
      this.groupSwitchNowVisible = false
    },
    getList(isQuery) {
      // this.loading = true;
      var vue = this
      const hessNode = []
      if (isQuery == 'query') {
        this.groupListloading = true
      }

      if (this.queryParams.faultFlag == 'undefined') {
        this.queryParams.faultFlag = ''
      }

      listGroup(this.queryParams).then((response) => {
        this.groupList = response.rows

        this.groupListloading = false
        this.groupList.map((item) => {
          // 重置监控页面vip 信息

          if (vue.$refs.monitorDialog.groupId == item.id) {
            // 获取配置的vip 信息
            vue.$refs.monitorDialog.showData.groupStatus = item.groupStatus

            if (item.securityServices.length) {
              vue.$refs.monitorDialog.showData.securityMethod =
                item.securityServices[0].securityMethod
            }
          }

          item.securityNodes.map((items) => {
            if (items.nodeIp == item.importantNodeIp) {
              item.importantNodeStatus = items.nodeStatus
            } else if (items.nodeIp == item.securityNodeIp) {
              item.securityNodeStatus = items.nodeStatus
            }
          })
        })

        this.total = response.total
        // this.loading = false;
      })
    },
    // 保障状态字典翻译
    statusFormat(row, column) {
      return this.selectDictLabel(this.statusOptions, row.systemStatus)
    },
    // 获取字典数据
    getDiceData(resolve) {
      // 节点类型
      this.getDicts('node_type').then((response) => {
        this.nodeTypeOptions = response.data
      })

      // 节点状态
      this.getDicts('node_status').then((response) => {
        this.nodeStatusOptions = response.data
      })
      // 保障分组-系统状态
      this.getDicts('group_system_status').then((response) => {
        this.statusOptions = response.data
      })

      // 心跳间隔
      this.getDicts('node_check_interval').then((response) => {
        this.checkIntervalOptions = response.data
      })

      // 组节点状态
      // this.$store
      //   .dispatch('getGroup_node_status')
      //   .then((res) => {
      //     console.log('获取 组节点状态 成功！以存入vuex')
      //   })
      //   .catch(() => {
      //     console.error('获取 组节点状态 失败！检查接口')
      //   })

      // // 组状态
      // this.$store
      //   .dispatch('getHess_group_status')
      //   .then((res) => {
      //     console.log('获取 组状态 成功！以存入vuex')
      //   })
      //   .catch(() => {
      //     console.error('获取 组状态 失败！检查接口')
      //   })
    },
    // 数据状态字典翻译
    nodeTypeFormat(row, column) {
      return this.selectDictLabel(this.nodeTypeOptions, row.nodeType)
    },
    // 数据状态字典翻译
    nodeStatusFormat(row, column) {
      return this.selectDictLabel(this.nodeStatusOptions, row.nodeStatus)
    },
    checkIntervalFormat(row, column) {
      return this.selectDictLabel(this.checkIntervalOptions, row.checkInterval)
    },
    dataDateFormat(row, column) {
      return row.dataDate + '天'
    },
    // 文件监听
    fileMonitor(row) {
      fileOperateInfo({
        groupId: row.id // row.id
      }).then((response) => {
        // 主要节点
        this.masterList = response.data.masterList
        const newMasterList = []

        if (this.masterList.length == 0) {
          this.masterList = newMasterList
        }

        // 保障节点
        this.slaveList = response.data.slaveList

        this.fileMonitorVisible = true
      })
    },
    fileMonitorClose() {
      this.fileMonitorVisible = false
    },
    // 打开查看系统参数
    systemParame(row) {
      this.$refs.sysDialog.init(row)
      // this.$refs.sysDialog.initSystemParame(row);
    },
    // 打开监控弹框
    clickHandle(row, flag) {
      this.$refs.monitorDialog.row = {}
      this.$refs.monitorDialog.group_node_status_options =
        this.getDiceData('group_node_status')
      const loading = this.$loading({
        lock: true,
        text: '加载中...',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.7)'
      })
      getAllInfo({
        id: row.id
      }).then((response) => {
        loading.close()
        this.$nextTick(() => {
          setTimeout(() => {
            this.$refs.monitorDialog.init(response.data, flag)
          }, 300)
        })
      })
    },

    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pgNum = 1
      this.queryParams.id = ''
      this.getList('query')
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.queryParams.id = ''
      this.queryParams.securityName = ''
      this.queryParams.importantNodeIp = ''
      this.queryParams.securityNodeIp = ''

      this.handleQuery()
    },
    pushShowData() {
      this.$router.push({
        path: 'showData'
      })
    },
    pushShowDataCDP() {
      this.$router.push({
        name: 'showDataCDP'
      })
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.$router.push({
        name: 'GroupStep',
        params: {
          type: 'add'
        }
      })
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      const id = row.id
      getAllInfo({
        id: id
      }).then((response) => {
        this.form = response.data

        // 获取节点状态
        this.$router.push({
          name: 'GroupStep',
          params: {
            type: 'edit',
            data: this.form
          }
        })
      })
    },
    // 删除前打开删除遮罩
    showDeDialogVisible(row) {
      this.deDialogVisible = true
      this.deleteRow = row
    },
    deDialogVisibleFn() {
      // console.log(this.delList);

      var HessGroup = {}
      HessGroup.id = this.deleteRow.id
      HessGroup.delVIP = this.delList.includes('delVIP')
      HessGroup.stopDriver = this.delList.includes('stopDriver')
      // 				delVIP  是否删除vip
      // 				stopDriver  是否停止驱动
      // 				id  保障组id
      const loading = this.$loading({
        lock: true,
        text: '加载中...',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.7)'
      })

      if (!HessGroup.delVIP && !HessGroup.stopDriver) {
        this.handleDelete(HessGroup)
        this.deDialogVisible = false
        loading.close()
        return
      }
      delAgentOtherInfo(HessGroup).then((response) => {
        loading.close()

        this.deDialogVisible = false
        this.handleDelete(this.deleteRow)
      })
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      var vue = this

      const ids = row.id || this.ids

      listGroupRemove({
        id: ids
      }).then((response) => {
        vue.getList()
        vue.msgSuccess('删除成功')
      })
    }
  }
}
</script>
<style>
.bzDialog .el-tabs__content {
  padding-bottom: 10px;
}

.sysDialog .el-dialog__body {
  padding: 10px 30px;
}

.center-scrollbar {
  position: relative;
}

#JcDialog .el-dialog__body {
  padding: 10px 0px;
}

.center-scrollbar,
.left-scrollbar {
  height: 450px;
  overflow: hidden;
  padding-left: 10px;
  border: 0px;
  width: 100%;
}

.center-scrollbar .el-scrollbar__wrap {
  overflow-x: hidden;
}

.wjjtDialog .has-gutter {
  display: none;
}

.pagination-container {
  height: 35px;
}
</style>
<style scoped>
.app-container {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hsPortSpan {
  display: inline-block;
  line-height: 36px;
  margin-left: 20px;
  color: #3fb0e3;
  cursor: pointer;
}

.demo-table-expand {
  border: 1px solid #dcdfe6;
  border-right: 0px;
  height: 160px;
  width: 560px;
  padding: 0;
  margin: 0;
}

.text-center {
  text-align: center;
}

.expand-title {
  border-bottom: 1px solid #dcdfe6;
  background: #f8f8f8;
  padding: 0;
  margin: 0;
}

.minW130 {
  width: 130px;
  display: inline-block;
}
.gjButton {
  margin: 0 10px;
  border: 0px;
}
.paddL35 {
  padding-left: 35px;
}

.paddL35:hover {
  background-color: #f6f6f6;
}
</style>
